<ui:composition xmlns="http://www.w3.org/1999/xhtml" xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core" xmlns:p="http://primefaces.org/ui">

	<ui:composition template="/templates/masterLayout.xhtml">
		<ui:define name="content">
			<h:form id="chiTietNhapKhoListFormId">
				<p:dataTable id="chiTietNhapKhoDataTableId" value="#{chiTietNhapKhoView.dataModel}"
					selection="#{chiTietNhapKhoView.selectedEntities}" paginator="true" var="entity" rows="10"
					paginatorTemplate="{RowsPerPageDropdown} {FirstPageLink} {PreviousPageLink} {CurrentPageReport} {NextPageLink} {LastPageLink}"
					lazy="true" paginatorPosition="bottom">
					<f:facet name="header">
					</f:facet>

					<p:column headerText="Tên SP">
						<h:outputText value="#{entity.sanPham.name}" />
					</p:column>
					<p:column headerText="SL">
						<h:outputText value="#{entity.soLuong}" />
					</p:column>
					<p:column headerText="MS Phiếu nhập">
						<p:commandLink value="#{entity.phieuNhapKho.code}"
							action="#{phieuNhapKhoView.setEditedEntity(entity.phieuNhapKho)}" update=":phieuNhapKhoDetailFormId"
							onsuccess="phieuNhapKhoDialog.show()" title="Xem toàn bộ Phiếu Nhập" />
					</p:column>
					<p:column headerText="Đơn giá nhập">
						<h:outputText value="#{entity.donGiaNhap}" />
					</p:column>
					<f:facet name="footer">
					</f:facet>
				</p:dataTable>
				<p:remoteCommand name="phieuNhapKhoDetailsCallback" update="@form" />
			</h:form>
			<ui:include src="phieuNhapKhoDetails.xhtml" />
		</ui:define>
	</ui:composition>


</ui:composition>